home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Views / Canvas Loops / CanvasScreenLoop.h < prev    next >
Text File  |  2000-06-23  |  858b  |  42 lines

  1. // CanvasScreenLoop.h
  2.  
  3. #ifndef CanvasScreenLoop_h
  4. #define CanvasScreenLoop_h
  5.  
  6. #ifndef CanvasMaintainer_h
  7. #include "CanvasMaintainer.h"
  8. #endif
  9. #ifndef ScreenLoop_h
  10. #include "ScreenLoop.h"
  11. #endif
  12. #ifndef Canvas_h
  13. #include "Canvas.h"
  14. #endif
  15.  
  16. class CanvasScreenLoop
  17.   {
  18.     private:
  19.         const Canvas& parent;
  20.         ScreenLoop screen;
  21.         Canvas canvas;
  22.         CanvasMaintainer canvasMaintainer;
  23.     
  24.         void AdvanceUntilVisible();
  25.         
  26.     public:
  27.         CanvasScreenLoop( const Canvas& );
  28.         
  29.         bool Finished() const                                { return screen.Finished(); }
  30.         bool Unfinished() const                                { return screen.Unfinished(); }
  31.         
  32.         void operator++();
  33.         void operator++(int)                                    { operator++(); }
  34.         
  35.         const Canvas *operator->() const                    { return &canvas; }
  36.         const Canvas& operator*() const                    { return canvas; }
  37.         
  38.         const GraphicsDeviceObject& Screen() const    { return *screen; }
  39.   };
  40.  
  41. #endif
  42.